<?php
$userid = islogin('json');
$payment	= empty($_GET['payment']) ? '' : trim($_GET['payment']);
$delivery	= empty($_GET['delivery']) ? '' : trim($_GET['delivery']);

$oCart = new Cart();
$amount = $oCart->cal_amount($userid, $payment, $delivery);
exit($json = json_encode($amount));
?>